<?php
//
//  VictoryCMS - Content managment system and framework.
//  Copyright (C) 2009  Lewis Gunsch
//
//  This file is part of VictoryCMS.
//  
//  VictoryCMS is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  VictoryCMS is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//  
//  You should have received a copy of the GNU General Public License
//  along with VictoryCMS.  If not, see <http://www.gnu.org/licenses/>.

/**
 * VictoryCMS - HtmlBuilder
 * 
 * @license http://www.gnu.org/licenses/gpl.html
 * @author Lewis Gunsch
 * @filesource
 * @package HtmlBuilders
 */

/**
 * This represents an abstract object that will operate 
 * on or add to an HtmlList. Form and Table are derived
 * from this class.
 * 
 * @package HtmlBuilders
 */
abstract class HtmlBuilder {
	
	/** The current list being built onto */
	protected $list;
	
	/**
	 * Constructs a new HtmlBuilder using the HtmlList list.
	 * @param $list The HtmlList to add onto
	 */
	public function __construct(HtmlList &$list) {
		$this->list = $list;
	}
	
	/**
	 * Destroy the HtmlList reference
	 * @return unknown_type
	 */
	public function __destruct() {
		unset($this->list);
	}
}
?>